//
//  VisitorViewController.m
//  wtshoppingcite
//  Created by TW on 14-10-27.
//  Copyright (c) 2014年 TW. All rights reserved.


#import "VisitorViewController.h"
#import "ProvinceViewController.h"
#import "CitesViewController.h"
#import "AppDelegate.h"
#import "CitesModel.h"
#import "ProvinceViewController.h"
#import "ProvinceSelectViewController.h"

@interface VisitorViewController ()

@end

@implementation VisitorViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [self setTitleView:@"住处选择"];
    [self setIsBackButton:YES];
    
    _data = [[NSMutableArray alloc]initWithCapacity:1];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self.button setTitle:[RegisterHelper shareHelper].citesName forState:UIControlStateNormal];
    ;
}


- (void)viewWillDisappear:(BOOL)animated
{
    
    [super viewWillDisappear:animated];
    
    
}


-(IBAction)selectProvinceAction:(id)sender{
    
//    ProvinceViewController *cityListVC = [[ProvinceViewController alloc] initWithNibName:nil bundle:nil];
//    cityListVC.hidesBottomBarWhenPushed = YES;
//    [self.navigationController pushViewController:cityListVC animated:YES];

    
}

-(IBAction)selectCitesAction:(id)sender{
    
    CitesViewController *citesVC = [[CitesViewController alloc]init];
    
//    [citesVC startRequestDataWithCode:@"440300"];

    citesVC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:citesVC animated:YES];
    
}


-(IBAction)confirmAction:(id)sender{
    
    [self.navigationController popViewControllerAnimated:YES];
    [APP_DELEGATE initMainViewControllerWithStoryBoardIdentifier:@"MainViewController" type:0 pushIn:self];
}

//-(void)setIsVisitor:(BOOL)isVisitor{
//    
//    _isVisitor = isVisitor;
//     [self.navigationController.navigationBar setHidden:NO];
//}


-(IBAction)selectAreaAction:(id)sender{
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
